package net.suncaper.demo.service;

import net.suncaper.demo.domain.RoomType;
import net.suncaper.demo.mapper.RoomTypeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class RoomTypeServiceImpl implements RoomTypeService{

    @Autowired
    private RoomTypeMapper roomTypeMapper;

//    @Transactional
//    @Cacheable("roomtype")
    @Override
    public RoomType findDetailById(Long cityid, Long hotelid){

        return roomTypeMapper.findDetailById(cityid,hotelid);
    }
}
